package com.xxbb.chapter_6.dome6;

import java.util.Comparator;
import java.util.function.Function;

public class PersonCompartor implements Comparator<Person>
{
    @Override
    public int compare(Person o1, Person o2) {
        return o1.getAge()-o2.getAge();
    }
}
